package learn.emp02.ex14;

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        int even = 0;
        int odd = 0;
        for (int i = 1;i<=n;i++){
            if (i%3==0){
                if (i%2==0){
                    even++;
                }else {
                    odd++;
                }
            }
        }
        System.out.println(odd+","+even);
        scanner.close();
    }
}
